import {config} from "../config/index.js";
import {request} from "../request/index.js";

const blockMsg = async function(callBack, handle) {
    await request.get(config.url.mainUrl.blockPage).then(callBack).then(handle)
}

const roundBtn = async function(callBack, handle) {
    await request.get(config.url.mainUrl.roundBtn).then(callBack).catch(handle)
}

export const mainApi = {
    blockMsg,
    roundBtn
}